﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Components.Data.UI.Controls.ControlBuilders
{
  class XmlControlBuilder : IControlBuilder
  {
    #region IControlBuilder Members

    public Control Build(ControlBindingArgs args)
    {
      Xml xml = new Xml();
      xml.DocumentContent = args["DocumentContent"];
      xml.TransformSource = args["TransformSource"];
      return xml;
    }

    #endregion
  }
}